//
//  XGNetworking.h
//  Journey
//
//  Created by dllo on 16/5/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^successBlock)(id result);
typedef void(^failureBlock)(NSError *error);
typedef void (^networkBlock)(BOOL networking);
@interface XGNetworking : NSObject

// 创建一个GET请求
+(void)XGGETWithURL:(NSString *)url parameter:(NSDictionary *)dic success:(successBlock)sucBlock failure:(failureBlock)errorBlock network:(networkBlock)netBlock;


@end
